home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr11
/
gedvw105.zip
/
FGS.PRG
< prev
next >
Wrap
Text File
|
1995-03-05
|
2KB
|
166 lines
*
* This creates a simple Family Group Chart from a FAM record
*
* for GEDView 1.05
* by michael@genealogy.emcee.com - 3 Mar 1995
*
get line
compare $FIELD3 fam
iffailed
end
remember RECORD
set bell off
save fgs.txt "\J"
go husb
iffailed
goto do_wife
append fgs.txt " Father: "
gosub calls
:do_wife
go wife
iffailed
goto continue
append fgs.txt " Mother: "
gosub calls
:continue
gosub do_marriage
gosub do_line
gosub get-children
gosub do_line
append fgs.txt " Compiler: Anybody Jones GEDView beta version 1.05\J"
append fgs.txt " Email: anybody@emcee.com\J\J"
system type fgs.txt
go record
set bell on
end
:do_line
append fgs.txt "-----------------------------------------------------------------\J"
return
:calls
gosub do_name
gosub do_birth
gosub do_death
gosub do_burial
go RECORD
return
:do_name
get name
iffailed
return
fixname $FIELD3
append fgs.txt $FULLNAME
append fgs.txt "\J"
return
:do_birth
get birt
iffailed
return
gosub get-data
append fgs.txt "\J"
return
:do_marriage
get marr
iffailed
return
gosub get-data
append fgs.txt "\J"
return
:do_death
get deat
iffailed
return
gosub get-data
append fgs.txt "\J"
return
:do_burial
get buri
iffailed
return
gosub get-data
append fgs.txt "\J"
return
:get-data
set #width 11
* append fgs.txt $LABEL "
* append fgs.txt ": "
append fgs.txt "$LABEL: "
get next line
set #width -0
compare $FIELD2 date
ifequal
gosub print-date
compare $FIELD2 plac
iffailed
return
append fgs.txt " at "
append fgs.txt $FIELD3
return
:print-date
append fgs.txt $FIELD3
get next line
return
:get-children
get chil
iffailed
return
append fgs.txt " Children: "
remember LINENO
:loop
ifescape
return
fixpointer #field3
go indi $FIELD3
get name
fixname $FIELD3
set #width -0
append fgs.txt $FIRSTNAME
gosub get-childs-data
append fgs.txt "\J"
go RECORD
go LINENO
get next chil
iffailed
return
remember LINENO
append fgs.txt " "
goto loop
:get-childs-data
get birt
iffailed
return
get next line
compare $FIELD2 date
ifequal
gosub print-date2
get deat
iffailed
return
append fgs.txt " - "
get next line
compare $FIELD2 date
ifequal
append fgs.txt $FIELD3
return
:print-date2
append fgs.txt ", "
append fgs.txt $FIELD3
return